/**
 * 地图图层树形结构数据
 * 包含基础图层和要素图层的配置信息
 */
export const wmsBaseUrl = "http://39.106.226.59:9520/geoserver/gp/wms";
export const layerTreeData = [
  {
    id: "zidongzhan",
    name: "自动站",
    type: "point",
    visible: false,
    checked: false,
    children: [
      {
        id: "guokongzhan",
        name: "国控站",
        type: "point",
        visible: false,
        checked: false,
        layers: [
          {
            id: "guokongzhan",
            layername: "guokongzhan",

            dataType: "dataApi",
            geoType: "Point",
          },
        ],
      },
      {
        id: "shengkongzhan",
        name: "省控站",
        type: "point",
        visible: false,
        checked: false,
        layers: [
          {
            id: "shengkongzhan",
            layername: "shengkongzhan",

            dataType: "dataApi",
            geoType: "Point",
          },
        ],
      },
      {
        id: "shikongzhan",
        name: "市控站",
        type: "point",
        visible: false,
        checked: false,
        layers: [
          {
            id: "shikongzhan",
            layername: "shikongzhan",

            dataType: "dataApi",
            geoType: "Point",
          },
        ],
      },
      {
        id: "xiankongzhan",
        name: "县控站",
        type: "point",
        visible: false,
        checked: false,
        layers: [
          {
            id: "xiankongzhan",
            layername: "xiankongzhan",

            dataType: "dataApi",
            geoType: "Point",
          },
        ],
      },
    ],
  },

  {
    id: "shougongduanmian",
    name: "实验室数据",
    type: "point",
    visible: false,
    checked: false,
    layers: [
      {
        id: "shougongduanmian",
        layername: "shougongduanmian",

        dataType: "dataApi",
        geoType: "Point",
      },
    ],
  },
  {
    id: "shuiyuandi",
    name: "饮用水源地",
    visible: false,
    checked: false,
    children: [
      {
        id: "shuiyuandiStation",
        name: "水源地监测站",
        type: "point",
        visible: false,
        checked: false,
        layers: [
          {
            id: "shuiyuandibaohuqu",
            layername: "shuiyuandibaohuqu",
            layerUrl: wmsBaseUrl,
            wmsLayerName: "gp:baohuqu",
            dataType: "wms",
            geoType: "polygon",
          },

          {
            id: "shuiyuandiStation",
            layername: "shuiyuandiStation",

            dataType: "dataApi",
            geoType: "Point",
          },

        ],
      },
      {
        id: "qushuikou",
        name: "取水口",
        type: "point",
        visible: false,
        checked: false,
        layers: [
          {
            id: "qushuikou",
            layername: "qushuikou",
            dataType: "dataApi",
            geoType: "Point",
          },

        ],
      },
    ],
  },


  {
    id: "wuranyuan",
    name: "污染源",
    type: "point",
    visible: false,
    checked: false,
    layers: [
      {
        id: "wuranyuan_heatmap",
        layername: "wuranyuan",

        dataType: "dataApi",
        heatmap: true,
      },
      {
        id: "wuranyuan",
        layername: "wuranyuan",

        dataType: "dataApi",
        geoType: "Point",
        minZoom: 12,
      },
    ],
  },

  {
    id: "ruhepaiwukou",
    name: "入河排污口",
    type: "point",
    visible: false,
    checked: false,
    layers: [
      {
        id: "ruhepaiwukou",
        layername: "ruhepaiwukou",
        geoType: "Point",
        dataType: "dataApi",
      },
    ],
  },
  {
    id: "yujing",
    name: "预警",
    type: "point",
    visible: false,
    checked: false,
    layers: [
      {
        id: "yujing",
        layername: "yujing",
        geoType: "Point",
        dataType: "dataApi",
      },
    ],
  },
  {
    id: "shipinjiankong",
    name: "视频监控",
    type: "point",
    visible: false,
    checked: false,
    layers: [
      {
        id: "shipinjiankong",
        name: "",
        layername: "shipinjiankong",
        geoType: "Point",
        dataType: "dataApi",
      },
    ],
  },



  {
    id: "wuranyuankuosan",
    name: "污染源扩散",
    type: "point",
    layers: [
      {
        id: "wuranyuankuosan",
        layername: "wuranyuankuosan",
        geoType: "Line",
        dataType: "model",
      },
    ],
  },
];

export default { layerTreeData, wmsBaseUrl };
